3.2.61 \(\int \frac {\sqrt {a-a \cos (x)}}{x} \, dx\) [161]

Optimal. Leaf size=24 \[ \sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right ) \]

[Out]

csc(1/2*x)*Si(1/2*x)*(a-a*cos(x))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {3400, 3380} \begin {gather*} \text {Si}\left (\frac {x}{2}\right ) \csc \left (\frac {x}{2}\right ) \sqrt {a-a \cos (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a - a*Cos[x]]/x,x]

[Out]

Sqrt[a - a*Cos[x]]*Csc[x/2]*SinIntegral[x/2]

Rule 3380

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3400

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[(2*a)^IntPart[n]
*((a + b*Sin[e + f*x])^FracPart[n]/Sin[e/2 + a*(Pi/(4*b)) + f*(x/2)]^(2*FracPart[n])), Int[(c + d*x)^m*Sin[e/2
 + a*(Pi/(4*b)) + f*(x/2)]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[n
 + 1/2] && (GtQ[n, 0] || IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {\sqrt {a-a \cos (x)}}{x} \, dx &=\left (\sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {x}{2}\right )}{x} \, dx\\ &=\sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 24, normalized size = 1.00 \begin {gather*} \sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a - a*Cos[x]]/x,x]

[Out]

Sqrt[a - a*Cos[x]]*Csc[x/2]*SinIntegral[x/2]

________________________________________________________________________________________

Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {a -a \cos \left (x \right )}}{x}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a-a*cos(x))^(1/2)/x,x)

[Out]

int((a-a*cos(x))^(1/2)/x,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-a*cos(x))^(1/2)/x,x, algorithm="maxima")

[Out]

integrate(sqrt(-a*cos(x) + a)/x, x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-a*cos(x))^(1/2)/x,x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- a \left (\cos {\left (x \right )} - 1\right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-a*cos(x))**(1/2)/x,x)

[Out]

Integral(sqrt(-a*(cos(x) - 1))/x, x)

________________________________________________________________________________________

Giac [A]
time = 0.43, size = 16, normalized size = 0.67 \begin {gather*} \sqrt {2} \sqrt {a} \mathrm {sgn}\left (\sin \left (\frac {1}{2} \, x\right )\right ) \operatorname {Si}\left (\frac {1}{2} \, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-a*cos(x))^(1/2)/x,x, algorithm="giac")

[Out]

sqrt(2)*sqrt(a)*sgn(sin(1/2*x))*sin_integral(1/2*x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\sqrt {a-a\,\cos \left (x\right )}}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a - a*cos(x))^(1/2)/x,x)

[Out]

int((a - a*cos(x))^(1/2)/x, x)

________________________________________________________________________________________